﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Controls;
using System.Windows;

namespace ARR.UI
{
    public class ValidatedBinding : Binding
    {
        public ValidatedBinding()
        {
            Initialize();
        }

        public ValidatedBinding(string path) : base(path)
        {
            Initialize();
        }

        private void Initialize()
        {
            this.Mode = BindingMode.TwoWay;
            this.ValidatesOnDataErrors = true;
            this.ValidatesOnExceptions = true;
            this.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
        }
    }

}
